//944. 删列造序
//思路：一动一静，列动行不动

#include <string.h>
int minDeletionSize(char ** strs, int strsSize){
    int row = strsSize;
    int col = strlen(strs[0]);
    int count = 0;

    for(int i = 0; i < col; i++)
    {
        for(int j = 1; j < row; j++)
        {
            if(strs[j-1][i] > strs[j][i])
            {
                count++;
                break;
            }
        }
    }
    return count;
}